import React, { Component } from "react";
import { NavLink } from "react-router-dom";

export default class MyNavLink extends Component {
    render() {
        return (
            <NavLink
                className={({ isActive }) =>
                    "list-group-item" + (isActive ? " atguigu " : "")
                }
                {...this.props}
            />
        );
    }
}
